package com.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.product.entity.Users;
import com.product.to.AddUserTo;
import com.product.to.UpdateUserTo;
import com.product.utils.PageUtils;

import java.util.List;

public interface IUsersService extends IService<Users> {

    PageUtils getAllUser(Integer size, Integer current,String username);

    void addUser(AddUserTo user);

    void updateUser(UpdateUserTo user);

    void deleteUser(Integer userId);

    void deleteUsers(List<Integer> userIds);

    Users getUserByUsername(String username);
}
